<%--
  Created by IntelliJ IDEA.
  User: tql
  Date: 2020/12/7
  Time: 23:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>展示页面</title>
</head>
<body>
<table>
    <tr>
        <th>id</th>
        <th>姓名</th>
        <th>密码</th>
        <th>电话</th>
    </tr>
    <h4>管理员和用户</h4>
    <jsp:useBean id="admins" scope="request" type="java.util.List"/>
    <c:forEach items="${admins}" var="admin">
        <tr>
            <td>${admin.admin_Id}</td>
            <td>${admin.admin_name}</td>
            <td>${admin.admin_pas}</td>
            <td>${admin.admin_phone}</td>
        </tr>
    </c:forEach>
    <jsp:useBean id="users" scope="request" type="java.util.List"/>
    <c:forEach items="${users}" var="user">
        <tr>
            <td>${user.admin_Id}</td>
            <td>${user.admin_name}</td>
            <td>${user.admin_pas}</td>
            <td>${user.admin_phone}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
